package com.woniuxy.factory.mapper;

import com.woniuxy.factory.entity.MaterialRequisition;
import com.woniuxy.factory.entity.WorkShop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MaterielAppMapper {

    List<MaterialRequisition> selectApplyInfo(@Param("mr") MaterialRequisition materialRequisition,@Param("page") int page, @Param("limit") int limit);

    int selectApplyInfoSum(@Param("mr") MaterialRequisition materialRequisition);

    List<WorkShop> selectFactory();

    void addApply(MaterialRequisition mr);

    MaterialRequisition selectApplyByid(String matId);

    void updateApply(MaterialRequisition mr);

    void deleteApply(String matId);

    void insertApplicationrecord(@Param("matId") String matId,@Param("applicationType") int applicationType,@Param("aprId") String aprId);

    /*查询所有用料申请表，用料出库调用(无参数)*/
    List<MaterialRequisition> selectAllMaterialRequest();

    MaterialRequisition selectMaterielAppByPlanid(String planid);

}
